<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@include file="/WEB-INF/jsp/hadmin/contentHeader.jsp"%>
</head>
<body class="gray-bg">
    <div class="row wrapper border-bottom white-bg page-heading">
		<div class="col-sm-12">
               <h:tableButton>
             		<div class="col-md-5">
                   		<input placeholder="ID" class="form-control" type="text" name="nickName">
                 	</div>
                 	<div class="col-md-5">
						<select name="status" class="form-control m-b help-block m-b-none">
							<option value="">请选择用户状态</option>
							<option value="0">正常</option>
							<option value="1">待审核</option>
							<option value="2">未通过</option>
						</select>
					</div>
               </h:tableButton>
               <h:table excludeAll="true">
           			 <th data-sortable="true" data-field="nickName">ID</th>
		             <th data-sortable="true" data-field="name">姓名</th>
		             <th data-sortable="true" data-field="sex">性别</th>
		             <th data-sortable="true" data-formatter="statusFormatter" data-field="status">状态</th>
               </h:table>
			<%-- <%@include file="/WEB-INF/jsp/hadmin/include/table.jsp" %> --%>
         </div>
    </div>
 
    <script type="text/javascript">
    	var tableConfig = {
   			uniqueId:"nickName",
   		};
    	function statusFormatter(type) {
    		var rt="";
    		if(type==1){
    			rt="<span style='color:red;'>"+$("option[value='"+type+"']").text()+"</span>";
    		}else if(type==0){
    			rt="<span style='color:green;'>"+$("option[value='"+type+"']").text()+"</span>";
    		}else if(type==0){
    			rt=$("option[value='"+type+"']").text();
    		}
    		return rt;
		}
    </script>
    <h:configBootstrapTable />
	<%-- <%@include file="/WEB-INF/jsp/hadmin/include/tableInit.jsp" %> --%>
</body>

</html>
